package com.qfedu.sem.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

@Entity
@Table(name="bug_version")
public class BugVersion {
	private static Logger LOG = LogManager.getLogger(BugVersion.class);

	@Id
	private String id; //id
	
	@Column(length = 50)
	private String no; //编号
	
	@ManyToOne
	@JoinColumn(name="project_id")
	private Project project;
	
	public BugVersion(String id, String no, Project project) {
		super();
		this.id = id;
		this.no = no;
		this.project = project;
	}

	public BugVersion() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

}
